package org.test.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.test.vo.Book;

import java.util.List;

@Mapper
public interface BookMapper {
     //添加一本书
     void addABook(Book book);

     //查找所有图书
     List<Book> getAllBooks();

     //根据图书编号查找图书
     Book getBookByBookid(@Param("bookid")int bookid);

     //根据书名模糊查找图书
     List<Book> searchLikeBookname(@Param("bookname")String bookname);
}
